<template>
  <div>
    <el-button type="primary" @click="willAdd">添加</el-button>
    <!-- 列表 -->
    <!-- 3.传给list -->
    <v-List @willUpdate="willUpdate"></v-List>

    <!-- 弹框 -->
    <!-- 将list传给form 和init传过去-->
    <v-form :status="status" ref="form"></v-form>
  </div>
</template>

<script>
import vList from "./components/list.vue";
import vForm from "./components/form.vue";
// 8.1 引入混入
import { statusMixins } from "../../mixins/index";

export default {
  components: {
    vList,
    vForm
  },
  // 混入--->弹框处理
  mixins: [statusMixins],
  data() {
    return {};
  },
  methods: {},
  mounted() {}
};
</script>

<style lang="less" scoped>
// @import "../../less/index.less";


</style>